# 
# Gypsy master makefile
#
# Chirag Kantharia <chirag@kantharia.in>
# Jan 2010
#

#
# Things to do...
#
# 1. Try building world kernel distribution into a DESTDIR
# 2. Custom compile the ports and build set of packages for a FreeBSD system
# 3. Copy packages to $DESTDIR/packages
# 4. chroot $DESTDIR sh -c 'cd /packages; pkg_add *'
# 5. rm -rf $DESTDIR/packages/*
# 6. Create etc/fstab
# 7.

all:
	#
	# Build the base installation
	#
	@scripts/world.sh
	#
	# Build the packages to be installed
	#
	@scripts/packages.sh
	#
	# Customization: rc.conf files
	#
	@scripts/custom.sh
	#
	# Create the root filesystem
	#
	@scripts/rootfs.sh
	#
	# Compress the root filesystem to fit into CD
	#
	@scripts/compress.sh
	#
	# Create a boot record
	#
	@scripts/boot.sh
	#
	# Generate an ISO image
	#
	@scripts/iso.sh

clean:
	rm -f obj
